﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Users
    {
        private int id;
        private string name;
        private string department;

        public int Id
        {
            get { return this.id; }
            set { this.id = value; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public string Department
        {
            get { return this.department; }
            set { this.department = value; }
        }
        //无参
        public void Users1()
        {
            this.Id = 123;
            this.Name = "张三";
            this.Department = "玛卡巴卡";
            Console.WriteLine("我叫"+this.name);
        }
        public void Users2(int id, string name, string department)
        {
            this.Id = Id;
            this.Name = name;
            this.Department = department;
            Console.WriteLine("我叫"+this.name);
        }
    }
}
